package com.aiguigu.test;

import org.omg.PortableInterceptor.INACTIVE;
import sun.awt.image.ImageWatched;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map.Entry;

public class Code2 {
    public static void main(String[] args) {


    }

    public static Boolean check(Entity entity){

        if (entity.score>=60)
        return true;
        if (entity.address.score>=60){
            return true;
        }

        List<Link> links = entity.links;
       for (Link link:links){
           if (link.score>=60)
           {
               return true;
           }
       }
       return false;
    }
}

class Entity{
    String name;
    String url;
    Integer score;

    Address address;

    List<Link> links;

    public Entity(String name, String url, Integer score, com.aiguigu.test.Address address, List<com.aiguigu.test.Link> links) {
        this.name = name;
        this.url = url;
        this.score = score;
        this.address = address;
        this.links = links;
    }
}

class Address{
   Integer score;
   String city;
   String county;

    public Address(Integer score, String city, String county) {
        this.score = score;
        this.city = city;
        this.county = county;
    }
}

class Link{
    Integer score;
    String url;

    public Link(Integer score, String url) {
        this.score = score;
        this.url = url;
    }
}
